/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DmeMenuControl.java
 *
 * Created on 27/11/2011, 14:51:34
 */
package dcobluej.draw.view;

/**
 *
 * @author Mih
 */
public class DmeMenuControl extends javax.swing.JInternalFrame {

    /** Creates new form DmeMenuControl */
    public DmeMenuControl() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        StateButton = new javax.swing.JButton();
        TransitionButton = new javax.swing.JButton();

        setTitle("Elementos DME");
        setMaximumSize(new java.awt.Dimension(145, 180));
        setMinimumSize(new java.awt.Dimension(145, 145));
        setPreferredSize(new java.awt.Dimension(145, 180));

        StateButton.setFont(new java.awt.Font("Lucida Calligraphy", 0, 18)); // NOI18N
        StateButton.setForeground(new java.awt.Color(51, 51, 255));
        StateButton.setText("Estado");

        TransitionButton.setFont(new java.awt.Font("Lucida Calligraphy", 0, 18)); // NOI18N
        TransitionButton.setForeground(new java.awt.Color(51, 51, 255));
        TransitionButton.setText("Transição");
        TransitionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TransitionButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(StateButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                    .addComponent(TransitionButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(StateButton, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TransitionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void TransitionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TransitionButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_TransitionButtonActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected javax.swing.JButton StateButton;
    protected javax.swing.JButton TransitionButton;
    // End of variables declaration//GEN-END:variables

    public void enableButtons(boolean enable) {
        StateButton.setEnabled(enable);
        TransitionButton.setEnabled(enable);
    }
}
